/**  
* @author renbangjie renbangjie@126.com  
* @date 2015-1-5 上午11:59:20
* @version V1.0  
* <b>Copyright (c)</b> 2014医信金融信息服务（上海）有限公司-版权所有<br/>
*/
package com.yjd.comm.funds.dto;

import org.jsoup.helper.StringUtil;

import com.yjd.comm.base.model.Model;
import com.yjd.comm.util.FrameUtil;

/**
 * @author renbangjie renbangjie@126.com
 * @date 2015-1-5 上午11:59:20
 */
public class UserRewardDto extends Model {

	/**
	* @Fields serialVersionUID : TODO
	*/
	private static final long serialVersionUID = 1L;
	
	/**
	 * 红包类型
	 */
	private String type;
	/**
	 * 金额
	 */
	private String amount;
	/**
	 * 余额
	 */
	private String balance;
	
	private String startTimeFormatter;
	
	private Long startTime;
	
	private String endTimeFormatter;
	
	private Long endTime;
	
	private boolean ispast; //是否过期

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getAmount() {
		return amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}

	public String getBalance() {
		return balance;
	}

	public void setBalance(String balance) {
		this.balance = balance;
	}

	public String getStartTimeFormatter() {
		return startTimeFormatter;
	}

	public void setStartTimeFormatter(String startTimeFormatter) {
		this.startTimeFormatter = startTimeFormatter;
	}

	public Long getStartTime() {
		return startTime;
	}

	public void setStartTime(Long startTime) {
		this.startTime = startTime;
	}

	public String getEndTimeFormatter() {
		return endTimeFormatter;
	}

	public void setEndTimeFormatter(String endTimeFormatter) {
		this.endTimeFormatter = endTimeFormatter;
	}

	public Long getEndTime() {
		return endTime;
	}

	public void setEndTime(Long endTime) {
		this.endTime = endTime;
	}

	public boolean getIspast() {
		if(endTime == null){
			return false;
		}
		long ct = FrameUtil.getTime(null);
		if(ct > endTime){
			return true;
		}
		return false;
	}

	public void setIspast(boolean ispast) {
		this.ispast = ispast;
	}
	
}
